home *** CD-ROM | disk | FTP | other *** search
- #ifndef __TEXT_BUFFER_H_
- #define __TEXT_BUFFER_H_
-
- #include "simple.h"
- #include "geom.h"
- #include <alloc.h>
-
- #define PAGE_WIDTH 80
- #define PAGE_HEIGHT 60
-
- /* We build 60 x 80 page in memory and print to it information of
- different types. It is text mode printing.
- */
-
- struct TextPage
- {
- uchar** page; // Work area in memory: uchar[80][60]
-
- TextPage();
- ~TextPage();
-
- int putText(loc pos, uchar* txt); // Return 0 or curr. pos. of Y overflow
- int draw_bar(rect r, char c = '*');
-
- };
-
- #endif __TEXT_BUFFER_H_